<?php
/* SVN FILE: $Id$ */

/**
 * Enter description here ....
 *
 * @filesource
 * @copyright    Copyright (c) 2006, .
 * @link
 * @package
 * @subpackage
 * @since
 * @version      $Revision$
 * @modifiedby   $LastChangedBy$
 * @lastmodified $Date$
 * @license      http://www.opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * Offering
 *
 * Enter description here...
 *
 * @package
 * @subpackage
 * @since
 */
class Offering extends AppModel
{
    var $name = 'Offering';
	
	var $recursive = 2;

	var $actsAs = array('Containable');
	
    var $belongsTo = array ('Course' =>
    								array('className' => 'Course'
    								), 
    							 'Institution' =>
    								array('className' => 'Institution'
    								),
    							 'Semester' =>
    								array('className' => 'Semester'
    								),
    							 'OfferingType' =>
    								array('className' => 'OfferingType'
    								),
	    						 'DevSemester' =>
    								array('className' => 'Semester',
									'foreignkey' => 'dev_semester_id'
    								),
    							 'Status' =>
    								array('className' => 'Status'
    								),
    					);
    					
    var $hasMany = array ('Enrollment' =>
    								array('className' => 'Enrollment',
    								),
    					  'OfferingComment' =>
    					  			array('className' => 'OfferingComment'
    								),
    					  'Task' =>
    					  			array('className' => 'Task'
    								),
						  'OfferingLog' =>
									array('className'=> 'OfferingLog'
									)
    					);
    					
/*    					
    function delete($id) 
    {
    	if ($id)
      {
          $this->id = $id;
          $this->saveField('enrollment_active', '0');
      }
    }
    */
}

?>